<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>潜在客户导入结果</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			closeTip();
			$('#btnRefresh').click(function (){
				top.$.fn.jerichoTab.loadData(true);
			});
		});
	</script>
</head>
<body>
	<div style="padding-left:100px;padding-top:50px;text-align:left;">
		<c:choose>
			<c:when test="${flag}">
				<h3>导入添加成功</h3>
				<br>
				新增导入添加（ <span style="color: red">${successNum}</span> ）条，合并数据（ <span style="color: red">${mergerNum}</span> ）条。
			</c:when>
			<c:otherwise>
				<h3>导入添加失败</h3>
				<br>
				<span style="font-size: medium;">失败原因:</span>
				<span style="color: red;">${errorMsg}</span>
				<a href="${ctx}/mywork/potentialCustomer/import/template" style="padding-left:30px;">下载导入模板</a>
				<c:if test="${not empty fileName}">
					<br>
					<span style="font-size: medium;">下载结果:</span>
					<a title="客户基本信息导入校验结果.xlsx" href="${ctx}/mywork/potentialCustomer/import/checked?fileName=${fileName}">客户基本信息导入校验结果.xlsx</a>
				</c:if>
			</c:otherwise>
		</c:choose>
	</div>
	<div style="padding-left:400px;padding-top:50px;text-align:left;">
		<a id="btnRefresh" class="btn btn-primary" href="${ctx}/mywork/potentialCustomer/import/form">   刷    新   </a>
	</div>

</body>
</html>